package org.jeecg.modules.qyxx.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.jeffreyning.mybatisplus.service.MppServiceImpl;
import org.jeecg.modules.qyxx.entity.TycLsgsxxTyshxydmlb;
import org.jeecg.modules.qyxx.mapper.TycLsgsxxTyshxydmlbMapper;
import org.jeecg.modules.qyxx.service.ITycLsgsxxTyshxydmlbService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
*
*/
@Service
public class TycLsgsxxTyshxydmlbServiceImpl extends MppServiceImpl<TycLsgsxxTyshxydmlbMapper, TycLsgsxxTyshxydmlb>
implements ITycLsgsxxTyshxydmlbService {

    @Override
    public List<TycLsgsxxTyshxydmlb> listByShxydm(String djxh) {
        LambdaQueryWrapper<TycLsgsxxTyshxydmlb> wrapper = Wrappers.lambdaQuery(TycLsgsxxTyshxydmlb.class);
        wrapper.eq(TycLsgsxxTyshxydmlb::getShxydm,djxh);
        return list(wrapper);
    }

    @Override
    public List<TycLsgsxxTyshxydmlb> listByShxydmAndTjnd(String djxh, String tjnd) {
        LambdaQueryWrapper<TycLsgsxxTyshxydmlb> wrapper = Wrappers.lambdaQuery(TycLsgsxxTyshxydmlb.class);
        wrapper.eq(TycLsgsxxTyshxydmlb::getShxydm,djxh)
        .likeRight(TycLsgsxxTyshxydmlb::getTime,tjnd);
        return list(wrapper);
    }
}
